package com.zzw.springboot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzw.springboot.bean.Supplier;
import com.zzw.springboot.bean.SupplierCooperation;

import java.util.List;

public interface SupplierCooperationMapper extends BaseMapper<SupplierCooperation> {
    // 插入合作关系
    int insertCooperation(SupplierCooperation cooperation);

    // 更新合作关系
    int updateCooperation(SupplierCooperation cooperation);

    // 删除合作关系
    int deleteCooperation(Integer cooperationId);

    // 根据ID查询合作关系
    SupplierCooperation selectCooperationById(Integer cooperationId);

    // 根据供应商ID查询合作关系
    List<SupplierCooperation> selectCooperationsBySupplier(Integer supplierId);

    // 根据条件查询合作关系列表
    List<SupplierCooperation> selectCooperationList(SupplierCooperation cooperation);
}
